﻿using UnityEngine;
using System.Collections;
using System.Reflection;

public class FindMemberByName : MonoBehaviour {
	OneProgress op;
	// Use this for initialization
	void Start () {
		op = GetComponent<OneProgress> ();
		System.Type t = op.GetType ();
		FieldInfo fi = t.GetField ("thisProgress");
		print (fi.ToString ());
		string s = "";
		s = fi.GetValue (op) as string;
		print (s);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
